package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Schedule;
import com.atguigu.yygh.vo.hosp.ScheduleOrderVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ScheduleService {
    void save(Map<String, Object> stringObjectMap);

    Page<Schedule> shedulePage(Map<String, Object> stringObjectMap);

    Map<String, Object> getSchedulePage(String hoscode, String depcode, Integer page, Integer limit);

    List<Schedule> getScheduleDetail(String hoscode, String depcode, String workdate);

    Map<String, Object> getSchedulePageByCondition(Integer page, Integer limit, String hoscode, String depcode);

    Schedule getScheduleById(String scheduleId);

    ScheduleOrderVo getScheduleOrderVoById(String scheduleId);

    boolean update(String scheduleId, Integer availableNumber);

    void cancel(String scheduleId);
}
